﻿using System;
using System.Collections.Generic;
using System.Data.OracleClient;
using System.Text;

namespace Utility
{
    public class OracleParameterList : DbParameterList<OracleParameter>
    {
        public OracleParameter Add(string parameterName, OracleType dbType)
        {
            return Add(new OracleParameter(parameterName, dbType));
        }

        public OracleParameter Add(string parameterName, OracleType dbType, int size)
        {
            return Add(new OracleParameter(parameterName, dbType, size));
        }

        public OracleParameter Add(string parameterName, OracleType dbType, int size, string sourceColumn)
        {
            return Add(new OracleParameter(parameterName, dbType, size, sourceColumn));
        }

        public OracleParameter AddWithValue(string parameterName, object value, OracleType dbType)
        {
            return Add(new OracleParameter(parameterName, dbType) { Value = value });
        }
    }

}
